package com.yxpweb.provider.controller;

import api.ProviderServiceApi;
import bean.UserAddress;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
public class ProviderServiceController implements ProviderServiceApi {
    @Override
    public List<UserAddress> getUserAddressList() {
        UserAddress userAddress1 = new UserAddress("1", "yxp", "hh");
        UserAddress userAddress2 = new UserAddress("2", "feifei", "hh");
        return Arrays.asList(userAddress1, userAddress2);
    }
}
